package com.jc.repository.generator.utils;

/**
 * @author wangli
 * @create 2016-10-17 17:27
 * @description 构造的查询条件
 */

public class ConditionsExtend<T> {

    public T andIsNull;
    public T andIsNotNull;
    public T andEqualTo;
    public T andNotEqualTo;
    public T andGreaterThan;
    public T andGreaterThanOrEqualTo;
    public T andLessThan;
    public T andLessThanOrEqualTo;
    public T andLike;
    public T andNotLike;


    public ConditionsExtend andIsNull(T value) {
        this.andIsNull = value;
        return this;
    }

    public ConditionsExtend andIsNotNull(T value) {
        this.andIsNotNull = value;
        return this;
    }

    public ConditionsExtend andEqualTo(T value) {
        this.andEqualTo = value;
        return this;
    }

    public ConditionsExtend andNotEqualTo(T value) {
        this.andNotEqualTo = value;
        return this;
    }

    public ConditionsExtend andGreaterThan(T value) {
        this.andGreaterThan = value;
        return this;
    }

    public ConditionsExtend andGreaterThanOrEqualTo(T value) {
        this.andGreaterThanOrEqualTo = value;
        return this;
    }

    public ConditionsExtend andLessThan(T value) {
        this.andLessThan = value;
        return this;
    }

    public ConditionsExtend andLessThanOrEqualTo(T value) {
        this.andLessThanOrEqualTo = value;
        return this;
    }

    public ConditionsExtend andLike(T value) {
        this.andLike = value;
        return this;
    }

    public ConditionsExtend andNotLike(T value) {
        this.andNotLike = value;
        return this;
    }

    public T getAndIsNull() {
        return andIsNull;
    }

    public void setAndIsNull(T andIsNull) {
        this.andIsNull = andIsNull;
    }

    public T getAndIsNotNull() {
        return andIsNotNull;
    }

    public void setAndIsNotNull(T andIsNotNull) {
        this.andIsNotNull = andIsNotNull;
    }

    public T getAndEqualTo() {
        return andEqualTo;
    }

    public void setAndEqualTo(T andEqualTo) {
        this.andEqualTo = andEqualTo;
    }

    public T getAndNotEqualTo() {
        return andNotEqualTo;
    }

    public void setAndNotEqualTo(T andNotEqualTo) {
        this.andNotEqualTo = andNotEqualTo;
    }

    public T getAndGreaterThan() {
        return andGreaterThan;
    }

    public void setAndGreaterThan(T andGreaterThan) {
        this.andGreaterThan = andGreaterThan;
    }

    public T getAndGreaterThanOrEqualTo() {
        return andGreaterThanOrEqualTo;
    }

    public void setAndGreaterThanOrEqualTo(T andGreaterThanOrEqualTo) {
        this.andGreaterThanOrEqualTo = andGreaterThanOrEqualTo;
    }

    public T getAndLessThan() {
        return andLessThan;
    }

    public void setAndLessThan(T andLessThan) {
        this.andLessThan = andLessThan;
    }

    public T getAndLessThanOrEqualTo() {
        return andLessThanOrEqualTo;
    }

    public void setAndLessThanOrEqualTo(T andLessThanOrEqualTo) {
        this.andLessThanOrEqualTo = andLessThanOrEqualTo;
    }

    public T getAndLike() {
        return andLike;
    }

    public void setAndLike(T andLike) {
        this.andLike = andLike;
    }

    public T getAndNotLike() {
        return andNotLike;
    }

    public void setAndNotLike(T andNotLike) {
        this.andNotLike = andNotLike;
    }
}
